/* 主题变量定义 */
:root {
  --primary-color: #e50914;
  --secondary-color: #ff4c4c;
  --background-color: #121212;
  --text-color: #ffffff;
}

.light-theme {
  --primary-color: #ff4c4c;
  --secondary-color: #ff9999;
  --background-color: #f8f8f8;
  --text-color: #333333;
}

/* 主题切换按钮 */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 0.8em;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #fff;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

header {
  width: 100%;
  padding: 20px;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  /* 改为透明背景 */
  background: transparent;
  color: white;
  box-shadow: none; /* 移除阴影 */
  position: fixed;
  top: 0;
  z-index: 1000;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  padding-top: 100px;
}

.movie-card {
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.movie-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.movie-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
  header {
    font-size: 1.5em;
  }
  .movie-card {
    height: 220px;
  }
  .movie-title {
    font-size: 1em;
  }
  .movie-list {
    padding-top: 60px;
  }
}